package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.common.annotation.AutoFill;
import com.ruoyi.common.enums.AutoFillType;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.DispatchWaterQualityMonitoringSitesMapper;
import com.ruoyi.system.domain.DispatchWaterQualityMonitoringSites;
import com.ruoyi.system.service.IDispatchWaterQualityMonitoringSitesService;

/**
 * 水质监测站点Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-02
 */
@Service
public class DispatchWaterQualityMonitoringSitesServiceImpl implements IDispatchWaterQualityMonitoringSitesService 
{
    @Autowired
    private DispatchWaterQualityMonitoringSitesMapper dispatchWaterQualityMonitoringSitesMapper;

    /**
     * 查询水质监测站点
     * 
     * @param waterQualityMonitoringSitesId 水质监测站点主键
     * @return 水质监测站点
     */
    @Override
    public DispatchWaterQualityMonitoringSites selectDispatchWaterQualityMonitoringSitesByWaterQualityMonitoringSitesId(Long waterQualityMonitoringSitesId)
    {
        return dispatchWaterQualityMonitoringSitesMapper.selectDispatchWaterQualityMonitoringSitesByWaterQualityMonitoringSitesId(waterQualityMonitoringSitesId);
    }

    /**
     * 查询水质监测站点列表
     * 
     * @param dispatchWaterQualityMonitoringSites 水质监测站点
     * @return 水质监测站点
     */
    @Override
    public List<DispatchWaterQualityMonitoringSites> selectDispatchWaterQualityMonitoringSitesList(DispatchWaterQualityMonitoringSites dispatchWaterQualityMonitoringSites)
    {
        return dispatchWaterQualityMonitoringSitesMapper.selectDispatchWaterQualityMonitoringSitesList(dispatchWaterQualityMonitoringSites);
    }

    /**
     * 新增水质监测站点
     * 
     * @param dispatchWaterQualityMonitoringSites 水质监测站点
     * @return 结果
     */
    @AutoFill(operation = AutoFillType.INSERT)
    @Override
    public int insertDispatchWaterQualityMonitoringSites(DispatchWaterQualityMonitoringSites dispatchWaterQualityMonitoringSites)
    {
        return dispatchWaterQualityMonitoringSitesMapper.insertDispatchWaterQualityMonitoringSites(dispatchWaterQualityMonitoringSites);
    }

    /**
     * 修改水质监测站点
     * 
     * @param dispatchWaterQualityMonitoringSites 水质监测站点
     * @return 结果
     */
    @AutoFill(operation = AutoFillType.UPDATE)
    @Override
    public int updateDispatchWaterQualityMonitoringSites(DispatchWaterQualityMonitoringSites dispatchWaterQualityMonitoringSites)
    {
        return dispatchWaterQualityMonitoringSitesMapper.updateDispatchWaterQualityMonitoringSites(dispatchWaterQualityMonitoringSites);
    }

    /**
     * 批量删除水质监测站点
     * 
     * @param waterQualityMonitoringSitesIds 需要删除的水质监测站点主键
     * @return 结果
     */
    @Override
    public int deleteDispatchWaterQualityMonitoringSitesByWaterQualityMonitoringSitesIds(Long[] waterQualityMonitoringSitesIds)
    {
        return dispatchWaterQualityMonitoringSitesMapper.deleteDispatchWaterQualityMonitoringSitesByWaterQualityMonitoringSitesIds(waterQualityMonitoringSitesIds);
    }

    /**
     * 删除水质监测站点信息
     * 
     * @param waterQualityMonitoringSitesId 水质监测站点主键
     * @return 结果
     */
    @Override
    public int deleteDispatchWaterQualityMonitoringSitesByWaterQualityMonitoringSitesId(Long waterQualityMonitoringSitesId)
    {
        return dispatchWaterQualityMonitoringSitesMapper.deleteDispatchWaterQualityMonitoringSitesByWaterQualityMonitoringSitesId(waterQualityMonitoringSitesId);
    }
}
